<?php

function c(){
   mysql_connect('localhost','','') or die ();
   mysql_select_db('');
   mysql_query("SET CHARACTER SET UTF-8");
}

function q($sql){
   $res = mysql_query($sql);
   return $res;
}

function a($res) {return mysql_fetch_array($res);}

function r($res) {return mysql_fetch_row($res);}

function n($res) {return mysql_num_rows($res);}

c();

function autoload($ClassName) {
   $fileName = $ClassName.'.class.php';
   include ('class/'.$fileName);
}

spl_autoload_register('autoload');

?>
